using System;
using moose.irc;

namespace TestConsole
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			IrcSession session = new IrcSession();
			session.Event += onEvent;
			session.send("server irc.igs.ca 6667");
			
			Console.WriteLine ("Press <Enter> to terminate...");
			Console.ReadLine();
		}
		
		static void onEvent(IrcSession session, IrcEvent irc_event) {
			if (irc_event.EventType == IrcEventTypes.MessageStatus) {
				Console.WriteLine(irc_event.Arguments[IrcEventArgumentType.Message].Value);
			}
			
			return;
		}
		
	}
}
